Optimal. Leaf size=35 \[ \frac{B x}{a}-\frac{(B-C) \tan (c+d x)}{d (a \sec (c+d x)+a)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.131612, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.079, Rules used = {4072, 3919, 3794} \[ \frac{B x}{a}-\frac{(B-C) \tan (c+d x)}{d (a \sec (c+d x)+a)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4072
Rule 3919
Rule 3794
Rubi steps
\begin{align*} \int \frac{\cos (c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right )}{a+a \sec (c+d x)} \, dx &=\int \frac{B+C \sec (c+d x)}{a+a \sec (c+d x)} \, dx\\ &=\frac{B x}{a}-(B-C) \int \frac{\sec (c+d x)}{a+a \sec (c+d x)} \, dx\\ &=\frac{B x}{a}-\frac{(B-C) \tan (c+d x)}{d (a+a \sec (c+d x))}\\ \end{align*}
Mathematica [B] time = 0.130997, size = 72, normalized size = 2.06 \[ \frac{\sec \left (\frac{c}{2}\right ) \cos \left (\frac{1}{2} (c+d x)\right ) \left (B d x \cos \left (c+\frac{d x}{2}\right )+2 (C-B) \sin \left (\frac{d x}{2}\right )+B d x \cos \left (\frac{d x}{2}\right )\right )}{a d (\cos (c+d x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.069, size = 56, normalized size = 1.6 \begin{align*} -{\frac{B}{ad}\tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) }+2\,{\frac{B\arctan \left ( \tan \left ( 1/2\,dx+c/2 \right ) \right ) }{ad}}+{\frac{C}{ad}\tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.43019, size = 99, normalized size = 2.83 \begin{align*} \frac{B{\left (\frac{2 \, \arctan \left (\frac{\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac{\sin \left (d x + c\right )}{a{\left (\cos \left (d x + c\right ) + 1\right )}}\right )} + \frac{C \sin \left (d x + c\right )}{a{\left (\cos \left (d x + c\right ) + 1\right )}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.470496, size = 105, normalized size = 3. \begin{align*} \frac{B d x \cos \left (d x + c\right ) + B d x -{\left (B - C\right )} \sin \left (d x + c\right )}{a d \cos \left (d x + c\right ) + a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{B \cos{\left (c + d x \right )} \sec{\left (c + d x \right )}}{\sec{\left (c + d x \right )} + 1}\, dx + \int \frac{C \cos{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}}{\sec{\left (c + d x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14913, size = 59, normalized size = 1.69 \begin{align*} \frac{\frac{{\left (d x + c\right )} B}{a} - \frac{B \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - C \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{a}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]